<template>
  <m-page>
    <!-- 卡片管理 -->
    <m-header title="心意通卡管理"></m-header>
    <div class="card_manage">
      <ynet-cell-item title="设置交易密码" arrow @click="gotoPasswordSet">
        <span slot="right" v-if="hasPassword === '1'">已设置</span>
        <span slot="right" v-if="hasPassword === '0'">未设置</span>
      </ynet-cell-item>
    </div>
  </m-page>
</template>

<script>
import { CellItem } from "ynet-mobile";
import { goto } from "../utils/index"
export default {
  components: {
    [CellItem.name]: CellItem
  },
  data() {
    return {
      hasPassword: "0" //0未为设置密码 1 为已设置密码
    };
  },
  created() {
    this.hasPassword = app.params.hasPassword;
  },
  mounted() {},
  methods: {
    //点击进入密码设置
    gotoPasswordSet(){
      goto('home_pages/password_setting.html')
    }
  },
  watch: {},
  computed: {}
};
</script>

<style lang="scss" scoped>
@import "./index.scss";
</style>

